package com.jie.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import com.jie.entity.ThematicCategory;
import com.jie.entity.Video;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @Author: 杰
 * @Project :net-disk
 * @DateTime: 2024/4/23 16:38
 **/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CombinationTopicDTO {
    private Integer id;
    /**
     * 专题名称
     */
    private String topicName;

    /**
     * 专题描述
     */
    private String topicInfo;

    /**
     * 专题参与人数
     */
    private Integer topicPersonCount;
    /**
     * 训练作者名称
     */
    private String videoAuthorName;
    /**
     *   训练封面
     */
    private String topicImages;
    /**
     * 训练作者头像
     */
    private String authorImages;

    /**
     * 专题消耗大卡
     */
    private Integer topicConsumable;

    /**
     * 专题所属大类
     */
    private ThematicCategory topicClassInfo;

    /**
     * 创建时间
     */
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    // 格式化
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    /**
     * 资源所属信息
     */
    private Video video;

}
